package com.qing.mvc.conver;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.WebBindingInitializer;

import java.util.Date;
//注册全局 自定义编辑器转换数据
public class DateBindingInitializer implements WebBindingInitializer {
	@Override
	public void initBinder(WebDataBinder binder) {
		binder.registerCustomEditor(Date.class,new DateEditor());
	}
}
